﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000245 RID: 581
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueGoAheadScRsp : IMessage<ChessRogueGoAheadScRsp>, IMessage, IEquatable<ChessRogueGoAheadScRsp>, IDeepCloneable<ChessRogueGoAheadScRsp>, IBufferMessage
	{
		// Token: 0x170007B6 RID: 1974
		// (get) Token: 0x06001A4A RID: 6730 RVA: 0x0004BFE0 File Offset: 0x0004A1E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueGoAheadScRsp> Parser
		{
			get
			{
				return ChessRogueGoAheadScRsp._parser;
			}
		}

		// Token: 0x170007B7 RID: 1975
		// (get) Token: 0x06001A4B RID: 6731 RVA: 0x0004BFE7 File Offset: 0x0004A1E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueGoAheadScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170007B8 RID: 1976
		// (get) Token: 0x06001A4C RID: 6732 RVA: 0x0004BFF9 File Offset: 0x0004A1F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueGoAheadScRsp.Descriptor;
			}
		}

		// Token: 0x06001A4D RID: 6733 RVA: 0x0004C000 File Offset: 0x0004A200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGoAheadScRsp()
		{
		}

		// Token: 0x06001A4E RID: 6734 RVA: 0x0004C008 File Offset: 0x0004A208
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGoAheadScRsp(ChessRogueGoAheadScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.cellId_ = other.cellId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001A4F RID: 6735 RVA: 0x0004C039 File Offset: 0x0004A239
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGoAheadScRsp Clone()
		{
			return new ChessRogueGoAheadScRsp(this);
		}

		// Token: 0x170007B9 RID: 1977
		// (get) Token: 0x06001A50 RID: 6736 RVA: 0x0004C041 File Offset: 0x0004A241
		// (set) Token: 0x06001A51 RID: 6737 RVA: 0x0004C049 File Offset: 0x0004A249
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170007BA RID: 1978
		// (get) Token: 0x06001A52 RID: 6738 RVA: 0x0004C052 File Offset: 0x0004A252
		// (set) Token: 0x06001A53 RID: 6739 RVA: 0x0004C05A File Offset: 0x0004A25A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CellId
		{
			get
			{
				return this.cellId_;
			}
			set
			{
				this.cellId_ = value;
			}
		}

		// Token: 0x06001A54 RID: 6740 RVA: 0x0004C063 File Offset: 0x0004A263
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueGoAheadScRsp);
		}

		// Token: 0x06001A55 RID: 6741 RVA: 0x0004C071 File Offset: 0x0004A271
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueGoAheadScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.CellId == other.CellId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001A56 RID: 6742 RVA: 0x0004C0B0 File Offset: 0x0004A2B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.CellId != 0U)
			{
				num ^= this.CellId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001A57 RID: 6743 RVA: 0x0004C108 File Offset: 0x0004A308
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001A58 RID: 6744 RVA: 0x0004C110 File Offset: 0x0004A310
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001A59 RID: 6745 RVA: 0x0004C11C File Offset: 0x0004A31C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CellId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.CellId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001A5A RID: 6746 RVA: 0x0004C174 File Offset: 0x0004A374
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.CellId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CellId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001A5B RID: 6747 RVA: 0x0004C1CC File Offset: 0x0004A3CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueGoAheadScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.CellId != 0U)
			{
				this.CellId = other.CellId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001A5C RID: 6748 RVA: 0x0004C21C File Offset: 0x0004A41C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001A5D RID: 6749 RVA: 0x0004C228 File Offset: 0x0004A428
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.CellId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000B06 RID: 2822
		private static readonly MessageParser<ChessRogueGoAheadScRsp> _parser = new MessageParser<ChessRogueGoAheadScRsp>(() => new ChessRogueGoAheadScRsp());

		// Token: 0x04000B07 RID: 2823
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000B08 RID: 2824
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04000B09 RID: 2825
		private uint retcode_;

		// Token: 0x04000B0A RID: 2826
		public const int CellIdFieldNumber = 1;

		// Token: 0x04000B0B RID: 2827
		private uint cellId_;
	}
}
